# $Id$
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Bartłomiej Piotrowski
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=jbig2dec
pkgver=0.13
pkgrel=1
pkgdesc='Decoder implementation of the JBIG2 image compression format'
url='http://www.ghostscript.com/jbig2dec.html'
arch=('x86_64' 'i686')
license=('GPL3')
depends=('libpng')
source=("http://downloads.ghostscript.com/public/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha1sums=('d7b07ef308e95dc44a83f2193ca4f445630e6355')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./autogen.sh --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
}
